package com.example.blog.service;

import com.example.blog.dao.pojo.User;
import com.example.blog.vo.Result;
import com.example.blog.vo.UserVo;

public interface UserService {
//    User findUserById(Long id);
    UserVo findUserVoById(Long id);

    User findUser(String account, String password);

    /**
     * 根据token查询用户信息
     * @param token
     * @return
     */
    Result findUserByToken(String token);


    /**
     * 根据account 查找用户
     * @param account
     * @return
     */
    User findUserByAccount(String account);

    /**
     * 保存用户
     */
    void save(User user);

    Result findUserPublish(String token);

    Result updateUserInfo(User user);

    User findUserInfoByToken(String token);

    Result findUserLikes(String token);

    Result findUserCollection(String token);
}
